package com.example.demo.dao;
import com.example.demo.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@Mapper
public interface UserDao {
    User queryById(String identity_id);//根据用户工号查询用户
    User queryPwd(String pwd);//根据用户pwd查询用户
    User info(String identity_id);

    List<User> userlist();//查询用户列表
    void authUser(@Param("id")int id,@Param("role") int role);//提升用户权限
    User getUser(@Param("identity_id")String identity_id);//根据用户工号查询用户
    int insertUser(@Param("user") User user);//用户新增
    User getUserById(@Param("id")int id);//根据id查询用户
    void updateUser(@Param("user") User user);//修改用户信息

       int deleteid(int id);


//    List<User> findUserList();//pagehelper
}